From 9b704c68bfc9d504b002c98b67fa06afe03cb8ae Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 15 Nov 2007 11:52:32 +0000 Subject: [PATCH] (url-retrieve-synchronously): Call delete-process. --- lisp/url/url.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/url/url.el b/lisp/url/url.el index 1af016ff0ba..98dc939af99 100644 --- a/lisp/url/url.el +++ b/lisp/url/url.el @@ -240,7 +240,9 @@ no further processing). URL is either a string or a parsed URL." ;; XXX: The callback must always be called. Any ;; exception is a bug that should be fixed, not worked ;; around. - (setq retrieval-done t)) + (progn ;; Call delete-process so we run any sentinel now. + (delete-process proc) + (setq retrieval-done t))) ;; We used to use `sit-for' here, but in some cases it wouldn't ;; work because apparently pending keyboard input would always ;; interrupt it before it got a chance to handle process input. -- 2.30.2